<?php

if(!function_exists("mcmessage_error")){
	/**
	 * General Error Page
	 *
	 * This function takes an error message as input
	 * (either as a string or an array) and displays
	 * it using the specified template.
	 *
	 * @access	private
	 * @param	string	the heading
	 * @param	string	the message
	 * @param	string	the template name
	 * @param 	int		the status code
	 * @return	string
	 */
	function mcmessage_error($message,$url=""){		
		$_error =& load_class('Exceptions', 'core');
		echo $_error->show_error($url, $message, 'error_mc', 200);
		exit;		
	}
	
	function mcmessage_success($message,$heading){
		$_error =& load_class('Exceptions', 'core');
		echo $_error->show_error($heading, $message, 'success_mc', 200);
		exit;
	}
}